#include "junix.h"

int main(int argc, char **argv)
{
	FILE *fp;
	char buf[BUFSIZ];
	char *p;
	int count=0;

	if( (fp=fopen("junix.h", "r"))==NULL)
		err_sys("fopen");

	while( fgets(buf, BUFSIZ, fp) )
	{
		count++;
		if( (p=strstr(buf, "udp")))
			fprintf(stdout,"%d:  %s",count, buf);
	}

	if( ferror(fp))
		err_sys("ferror");

	fcloseall();

	exit(0);
}

